﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Evaluant.Uss.Common;
using Microsoft.Isam.Esent.Interop;

namespace EsentProvider
{
    class PersistenceEngine : PersistenceEngineImplementation
    {
        readonly Factory m_Factory;

        public PersistenceEngine(Factory factory)
        {
            m_Factory = factory;
        }

        public override Evaluant.Uss.EntitySet Load(Evaluant.OPath.OPathQuery opath, string[] attributes, string orderby, int first, int max)
        {
            throw new NotImplementedException();
        }

        public override Evaluant.Uss.EntitySet LoadWithId(string type, string[] id, string[] attributes)
        {
            throw new NotImplementedException();
        }

        public override void LoadReference(System.Collections.IEnumerable entities, string[] references)
        {
            throw new NotImplementedException();
        }

        public override void ProcessCommands(Evaluant.Uss.Transaction tx)
        {
            //using (var transaction = new Transaction(session))
            //{
            //    transaction.Commit(CommitTransactionGrbit.None);
            //}
        }

        public override object LoadScalar(Evaluant.OPath.OPathQuery opath)
        {
            throw new NotImplementedException();
        }
    }
}
